package com.efast.cafe.portal.service.api;

import java.util.List;

import com.efast.cafe.portal.bean.api.PortalApiViewBean;
import com.efast.cafe.portal.bean.api.PortalApiViewQueryBean;
import com.efast.cafe.portal.entity.api.PortalApiView;
import com.efast.cafe.portal.remote.api.PortalApiViewService;

public interface IPortalApiViewService extends PortalApiViewService{

	/*新增View*/
	void insertApiView(PortalApiViewBean portalApiView);

	/* 修改View*/
	void updateApiView(PortalApiView portalApiView);

	/*删除View*/
	void deleteApiView(PortalApiView portalApiView);

	/* 查询View基本信息*/
	PortalApiView queryApiViewByViewId(PortalApiView portalApiView);

	PortalApiViewQueryBean queryViewByModuleId(PortalApiViewQueryBean queryBean);

	/**
	 * 校验viewCode是否循环引用
	 * @param viewCode
	 * @param componmetCode
	 * @return
	 */
	boolean checkComponentView(String viewCode, String componmetCode);
	
	/**
	 * 查询View 通过ViewCode
	 * @Date        :      2017年12月16日
	 * @param viewCode
	 * @return
	 */
	public Object queryByViewCode(String viewCode);

	public List<PortalApiView> selectViewsListByMouduleId(Integer moduleId, String code, String i18nName);


}
